Ext.define('TS.view.movie.movie.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.movieform',
    title : 'Film',
	url:URL.movie.form.movie,
	items:[
		{xtype:'hidden',name:'movie_id'},
		{xtype:'text',fieldLabel:'movie_title',name:'movie_title'},
		{xtype:'text',fieldLabel:'movie_description',name:'movie_description'},
		{xtype:'text',fieldLabel:'movie_source',name:'movie_source'},
		{xtype:'text',fieldLabel:'movie_length',name:'movie_length'},
		{xtype:'combo',fieldLabel:'movie_website_id',name:'movie_website_id',store:Dict.website},
		{xtype:'combo',fieldLabel:'language_id',name:'language_id' ,store:Dict.language},
		{xtype:'combo',fieldLabel:'author_id',name:'author_id' ,store:Dict.author}
		
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.movie.load();
			Util.store('Movie').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.movie.del.movie
		}
	}]
});